package com.mars.module.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.mars.module.system.entity.BaseEntity;

import java.time.LocalDateTime;

/**
 * 景点评论对象 sys_spot_review
 *
 * @author mars
 * @date 2024-03-26
 */

@Data
@ApiModel(value = "景点评论对象")
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("sys_spot_review")
public class SysSpotReview {

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * 用户
     */
    @Excel(name = "用户")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "用户")
    private Long userId;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户姓名")
    private String userName;
    /**
     * 景点
     */
    @Excel(name = "景点")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "景点")
    private Long spotId;


    @TableField(exist = false)
    @ApiModelProperty(value = "景点名称")
    private String spotName;
    /**
     * 内容
     */
    @Excel(name = "内容")
    @ApiModelProperty(value = "内容")
    private String content;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人ID")
    private Long createById;
}
